package manager

import "fmt"

type LoginPage struct {
	IpRedisKey string //ip_port
	UserAgent  string //ua
	Cookies    []string
	InputItems map[string]string //form input items
	//input hide
	CsrfToken      string //csrfToken
	PageInstance   string //pageInstance
	SIdString      string //sIdString
	LoginCsrfParam string
	EncryptedEmail string
	FpData         string //fp_data
	Apfc           string //apfc {}
	//head
	LiUuid string //head X-Li-Uuid AAX+7nysInfICNQZoRQtDA==
	FsUuid string //head X-Fs-Uuid 0005feee7cac2277c808d419a1142d0c
}

func NewLoginPage() *LoginPage {
	return &LoginPage{
		Cookies:        make([]string, 0),
		InputItems:     make(map[string]string),
		EncryptedEmail: "false",
	}
}
func (b *LoginPage) ToString() string {
	//ba, _ := json.Marshal(b)
	//return string(ba)
	return fmt.Sprintf("csrfToken=%s", b.CsrfToken)
}
